package com.sh_rw.label.bean;

/**
 * 射频参数
 * Created by rw-duke on 2018/4/4.
 */

public class RFBean extends BaseBean{
    private String rf_Id;//射频头编号
    private String label_type;//标签类型
    private String speed;//空中速率
    private String channel;//频道
    private String range;//距离
    private String rev1;
    private String rev2;
    private String rev3;
    private String rev4;
    private String rev5;
    private String rev6;
    private String rev7;
    private String rev8;

    public String getRf_Id() {
        return rf_Id;
    }

    public void setRf_Id(String rf_Id) {
        this.rf_Id = rf_Id;
    }

    public String getLabel_type() {
        return label_type;
    }

    public void setLabel_type(String label_type) {
        this.label_type = label_type;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public String getRev1() {
        return rev1;
    }

    public void setRev1(String rev1) {
        this.rev1 = rev1;
    }

    public String getRev2() {
        return rev2;
    }

    public void setRev2(String rev2) {
        this.rev2 = rev2;
    }

    public String getRev3() {
        return rev3;
    }

    public void setRev3(String rev3) {
        this.rev3 = rev3;
    }

    public String getRev4() {
        return rev4;
    }

    public void setRev4(String rev4) {
        this.rev4 = rev4;
    }

    public String getRev5() {
        return rev5;
    }

    public void setRev5(String rev5) {
        this.rev5 = rev5;
    }

    public String getRev6() {
        return rev6;
    }

    public void setRev6(String rev6) {
        this.rev6 = rev6;
    }

    public String getRev7() {
        return rev7;
    }

    public void setRev7(String rev7) {
        this.rev7 = rev7;
    }

    public String getRev8() {
        return rev8;
    }

    public void setRev8(String rev8) {
        this.rev8 = rev8;
    }

    public String buildInstructions(){
        StringBuilder instructions = new StringBuilder();
        instructions.append(head);
        instructions.append(length);
        instructions.append(devId);
        instructions.append(cmd);
        instructions.append(sn);
        instructions.append(encryption);
        instructions.append(rf_Id);
        instructions.append(label_type);
        instructions.append(speed);
        instructions.append(range);
        instructions.append(rev1);
        instructions.append(rev2);
        instructions.append(rev3);
        instructions.append(rev4);
        instructions.append(rev5);
        instructions.append(rev6);
        instructions.append(rev7);
        instructions.append(rev8);
        instructions.append(checkSum);
        return instructions.toString();
    }

}
